<template>
  <div class="blank-answer-view">
      <BlankAnswer v-if="grammarBlankAnswer.type === 1"/>
      <MistakeAnswer v-if="grammarBlankAnswer.type === 0"/>
  </div>
</template>

<script>
import BlankAnswer from '@/views/reverse-words/grammar-blank/blankAnswer'
import MistakeAnswer from '@/views/reverse-words/grammar-mistake/blankAnswer'
import { mapState, mapMutations } from "vuex";
export default {
  components: {
      BlankAnswer,
      MistakeAnswer
  },
  data() {
    return {};
  },
  computed: {
      ...mapState({
          grammarBlankAnswer: state => state.grammarBlankAnswer
      })
  },
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {},
  beforeMount() {},
  beforeUpdate() {},
  updated() {},
  beforeDestroy() {},
  destroyed() {},
  activated() {},
};
</script>
<style lang="less" scoped>
/* @import url(); 引入公共css类 */
.blank-answer-view {
  position: fixed;
  z-index: 1999;
  background-color: #fff;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  .chose-course-top {
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
    height: 80px;
    padding: 0 40px;
    background-color: #fff;
    .anticon {
      font-size: 24px; /* no */
    }
    .header-left {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      .back-arrow {
        width: 30px;
        height: 27px;
        background-image: url("~assets/home/btn_back.png");
        background-size: 100%;
        cursor: pointer;
      }
    }

    .course-title {
      width: 100%;
      flex: 1;
      font-size: 20px;
      font-weight: 700;
    }
    .btn-group {
      flex: 1;
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }
  }
}
</style>
